#include "clearClueCardMessageHandler.h"
#include "clearClueCardMessage.h"
#include "opResMessage.h"
#include "clearClueCardHandler.h"

void ClearClueCardMessageHandler::handle(MtpMessage* message, const IPaddress& attachment)
{
	ClearClueCardMessage* msg = (ClearClueCardMessage*)message;
	ClearClueCardHandler handler;
	handler(msg->getParam().getMovieId(), msg->getParam().getClueCardId(), msg->getParam().getChannel(),msg->getParam().getClueCardType());
	OpResMessage p(true, message);
	p.send(attachment);
}

MtpMessage* ClearClueCardMessageHandler::decode(MtpProtocol* packet, const IPaddress& attachment)
{
	return new ClearClueCardMessage(packet);
}
